<?php
include "includeFiles.php";
//if(empty($_SESSION['user_id'])) echo "<script>location.href='login.php';<//script>";
include "page.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $C['Title'];?></title>
<Link href="../uploadfile/ico/<?php echo $C['ICO'];?>" rel="Shortcut Icon">
<meta name="Keywords" content="<?php echo $C['Keywords'];?>">
<meta name="description" content="<?php echo $C['Description'];?>">
<Meta name="Copyright" Content="<?php echo $C['CopyRight'];?>">
<link href="css/css.css" rel="stylesheet" type="text/css" />
<link charset="utf-8" rel="stylesheet" href="css/alipay.css">
<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
</head>
<body id="mainbody">
<!--头部登录-->
<?php include_once('header.php');?>
<!--主体布局-->
<div class="main">
  <div class="locahostDIv"> <span>当前位置：<a href="#">首页</a></span> > <a href="#">3G号码套包</a> > <a href="#">选择套餐</a> </div>
  <div class="mb_10 bord5">
    <div class="J-tit5"><span class="More blue"></span>请选择套餐</div>
  <form action="3g2.php" method="post">  

    <DIV class=jls>

      <UL id=result_head class=clearfix>
          <LI class=tw11>套餐名称</LI>
          <LI class=tw12>套餐月费</LI>
          <LI class=tw13>套餐描述</LI>
        </UL>
        
       <?php
				$SQL="SELECT * FROM `Code_dinner`  where 1  ";
				$result=mysql_query($SQL);
				$total=mysql_num_rows($result);
				//调用pageft()，每页显示10条信息（使用默认的20时，可以省略此参数），使用本页URL（默认，所以省略掉）。
				_PAGEFT($total,20);
				if($total==0) echo "<h3>对不起！没有相关资料</h3>";
				  $SQL2=$SQL."  $condition   limit $firstcount,$displaypg  ";
				$result=mysql_query($SQL2);
				while($value=mysql_fetch_array($result)){
				?>
        <DIV class="bl_list stick  clearfix">
          <UL class=post_require>
            <LI class="tw11 ">
             <input name="dinner" type="radio"   onclick="din('<?=$value['dinner_code']?>')"    value="<?=$value['dinner_code']?>"  />
              <A style="FONT-SIZE: 14px" class=job title=66元套餐 href="#" target=_blank><?=$value['dinner_code']?> </A></LI>
            <LI class=tw12><A class="com " title=66元/月套餐 href="#" target=_blank><?=$value['Limit_degree']?></A></LI>
            <LI class=tw13><SPAN><?=$value['Product_info']?></SPAN></LI>
          </UL>
          <DIV id=jobsdetail42392 class="tw6 clearfix tr1"></DIV>
        </DIV>
  <? }?>
    
    </DIV>
    <div class="gehang"></div>
    <div class="J-tit5"><span class="More blue"></span>请选择入网当月的资费方式</div>
    <UL>
      <LI class=tw14>由于您当月入网不足一个完整月由于您当月入网不足一个完整月由于您当月入网不足一个完整月由于您当月入网不足一个完整月</LI>
    </UL>
    
      <?
                $SQL3="  select * from Code_activity ";
				$result=mysql_query($SQL3);
				while($value=mysql_fetch_array($result)){
				?> 
    <DIV class="bl_list stick  clearfix">
      <UL class=post_require>
        <LI class="tw11 ">
         <input name="remarks" id="remarks"   onclick="act('<?=$value['remarks']?>')"  type="radio" value="<?=$value['remarks']?>" />
          <A style="FONT-SIZE: 14px" class=job title=套餐包外资费 href="#" target=_blank><?=$value['remarks']?></A></LI>
        <LI class=tw13><SPAN><?=$value['Content']?></SPAN></LI>
      </UL>
      <DIV id=jobsdetail42392 class="tw6 clearfix tr1"></DIV>
    </DIV>
    
  <? }?>
    <div class="gehang"></div>
    <div class="J-tit6"><span class="More blue"></span>你选择的号码是： <?
            $SQL="SELECT Serial_number FROM `hy_b_3g`  where SpecialCateID = $id  ";
			$objDb->query($SQL);
		   $result = $objDb->get_data();
		   echo $result[0]['Serial_number'];
			?><input name="numbderid" type="hidden" value="<?=$_GET['id']?>" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;套餐为：<label id="dinner_view"></label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;入网当月的资费：<label id="activity_view"></label></div>
    <div class="bl">
      <div style=" width:228px; margin:0 auto;"><input type="image" src="images/bl.jpg" /></div>
      
        <script>
			
			function din(a){
			    $('#dinner_view').text(a);
			 }
			
			  function act(a){
			    $('#activity_view').text(a);
			 }

              
            </script>
    </div>
    
      </FORM>
  </div>
  <div class="gehang"></div>
  <div style="width:980px;height:100%;overflow:hidden;margin-top:10px"> <img src="images/copy_line.jpg" /><br />
    <br />
    <br />
    <img src="images/copy.jpg" />
    <?php include_once('help.php');?>
    <img src="images/copy_line.jpg" /> </div>
</div>
<div class="clear"></div>
<!--页底版权-->
<?php include_once('footer.php');?>
</body>
</html>
